package com.csdj.t309springboot.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author 谭湛宇
 * @since 2022-01-12
 */
@Data
@TableName("sign_in_record")
public class SignInRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 签到序号
     */
    private Integer id;

    /**
     * 用户编号
     */
    private Integer userId;

    /**
     * 签到的日期
     */
    private LocalDate signInDate;

    /**
     * 连续签到天数
     */
    private Integer consecutiveSignInDays;
    /**
     * 积分
     */
    private Integer score;
    /**
     * 是否被删除(0为正常,1为被删除)
     */
    private Boolean deleted;

    /**
     * 最后修改时间
     */
    //转换日期格式
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime lastModifyTime;

    /**
     * 版本号(修改过的次数)
     */
    private Integer version;


}
